/*
 * @Project Name: spring-boot
 * @File Name: UserService
 * @Package Name: com.hhly.spring.boot.cache
 * @Date: 2017/12/13 17:52
 * @Creator: linshixing-1199
 * @line------------------------------
 * @修改人:
 * @修改时间:
 * @修改内容:
 */

package com.sm.shoplook.service.system;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sm.shoplook.domain.system.User;
import com.sm.shoplook.vo.base.ApiException;
import com.sm.shoplook.vo.base.ApiResult;
import com.sm.shoplook.vo.system.user.req.UserPageSearchReqVo;
import com.sm.shoplook.vo.system.user.req.UserSaveReqVo;
import com.sm.shoplook.vo.system.user.resp.UserRoleRespVo;

/**
 * @author chenpy-1072
 * @desc UserService
 * @date 2017/12/13 17:52
 * @see
 */
public interface UserService {

	ApiResult<List<User>> selectUserByUserName(String username);

	ApiResult<PageInfo<User>> selectUsersPage(UserPageSearchReqVo userSearchReqVo);

	ApiResult deleteUsers(String[] idList) throws ApiException;

	ApiResult saveUser(UserSaveReqVo userSaveReqVo) throws ApiException;

	ApiResult<UserRoleRespVo> selectUserRoleByUserId(Integer userId);
}
